package net.neiquan.applibrary.base;


import net.neiquan.applibrary.R;
import net.neiquan.applibrary.wight.ProgressWebView;

/**
 * Created by wl_user on 2017/7/11.
 */

public class BaseWebActivity extends BaseActivity {
    protected ProgressWebView mWebView;

    @Override
    public int getRootViewId() {
        return R.layout.activity_web;
    }

    @Override
    public void setViews() {
        // mLoadingView = findViewById(R.id.baseweb_loading_indicator);
        mWebView = (ProgressWebView) findViewById(R.id.baseweb_webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        initData();
        setTitleTv("链接");
        String url = getIntent().getStringExtra("url");
        if(url!=null){
            mWebView.loadUrl(url);
        }
    }

    @Override
    public void initData() {

    }
}
